package com.guanyong.services;

import com.guanyong.dao.IMerchantDaoMapper;
import com.guanyong.dao.IMerchantLogDaoMapper;
import com.guanyong.model.MerchantLogModel;
import com.guanyong.model.MerchantModel;
import com.guanyong.utils.Comm.ResultCode;
import com.guanyong.utils.Comm.ResultObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by mxk on 2017/9/20.
 */
@Service
public class MerchantLogService
{
    @Autowired
    IMerchantLogDaoMapper iMerchantLogDaoMapper;

    public ResultObject<Integer> addMerchantLog(MerchantLogModel merchantLogModel)
    {
        ResultObject<Integer> resultObject=new ResultObject<Integer>();
        int res=iMerchantLogDaoMapper.addMerchantlog(merchantLogModel);
        if (res>-1){
            resultObject.setCode(ResultCode.OperateOk);
        }
        else{
            resultObject.setCode(ResultCode.OperateFail);
        }
        return  resultObject;
    }

}
